
import java.awt.Color;
import java.awt.Graphics; 

public class drawShapes extends java.applet.Applet{

 public void paint(Graphics g){
	g.drawString("Cool!!!", 100,10 );
	g.drawLine(0,0,200,200);
    g.drawRect(25,25,60,80);
   
    g.setColor(Color.blue);
    g.fillRect(25,25,30,30);
    
    g.setColor(Color.red);
    g.fillRoundRect(95, 95, 20, 25, 10, 10);

    g.setColor(Color.yellow);
    g.fillRoundRect(50,50,40,40,40,40);
    
    g.setColor(Color.green);
    g.draw3DRect(120,120,60,60,true);
    
    int xs[] = {2,15,48,130,2};
    int ys[] = {2,25,80,160,2};
    int np = xs.length;
    g.setColor(Color.blue);
    g.drawPolygon(xs,ys,np);
    g.setColor(Color.lightGray);
    g.fillPolygon(xs,ys,np);
    
    g.setColor(Color.black);
    g.fillOval(20, 160, 55, 80);
    
    g.setColor(Color.orange);
    g.drawArc(100, 10, 100, 100, -60, 180);
 }
}
